 namespace :db do
  
  task :remove_fake_users => :environment do
    
    list=["uxb1","uxb2","uxb3","uxb4","uxb5", "uxb6","uxb7","ucc1","ucc2","ucc3","ucc4","ucc5", "ucc6","ucc7", "usc1","usc2","usc3","usc4","usc5", "usc6","usc7" ]
    list.each{|login|
      user=User.find_by_login(login)
      if !user.nil?
        User.destroy(user.id)
      end
    }
    # rake db:remove_fake_users
  end
  
end